package com.oschina.proxy.stati;

import com.oschina.proxy.Count;

/**
 * 静态代理类
 *
 * @author duanmh
 */
public class CountImplProxy implements Count {

	private Count	imple;

	public CountImplProxy(Count imple) {
		this.imple = imple;
	}

	@Override
	public void queryCount() {
		System.out.println("查看之前");
		imple.queryCount();
		System.out.println("查看之前");
	}

	@Override
	public void updateCount() {
		System.out.println("更新之前");
		imple.updateCount();
		System.out.println("更新之后");

	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 0;
	}

}

